package org.karelun.gef;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;
import org.karelun.gef.helper.IDConstant;

public class Perspective implements IPerspectiveFactory {
	
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();

		IFolderLayout propertyView = layout.createFolder("PROPERTY", //$NON-NLS-1$
				IPageLayout.BOTTOM, 0.77f, editorArea);
		propertyView.addView(IDConstant.propertiesId);
		
		IFolderLayout outlineView = layout.createFolder("Outline", //$NON-NLS-1$
				IPageLayout.RIGHT, 0.75f, editorArea);
		outlineView.addView(IDConstant.outlineId);
		
//		layout.getViewLayout(IDConstant.outlineId).setMoveable(false);
	}
}
